def common_assert(resp, status_code, code, success, message):
    assert status_code == resp.status_code
    assert success == resp.json().get('success')
    assert code == resp.json().get('code')
    assert message == resp.json().get('message')